package com.zijie.members.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zijie.members.model.Members;
import com.zijie.members.model.search.MemberSearchBean;

import java.util.List;


public interface MemberService {
    //查询全部会员信息：
    Page<Members> findAll(Page<Members> page, MemberSearchBean memberSearchBean);

    //根据id删除单个会员：
    int deleteById(Integer id);

    //通过Id查询：
    Members findById(Integer id);

    //保存会员：
    boolean save(Members members);

    //修改更新会员：
    boolean update(Members members);

    //删除会员:
    int deleteAll(List<Integer> ids);

    //更新锁定状态
    boolean updateEnabled(Integer id, Boolean enabled);

    Members findByPhone(String phone);
}
